﻿#ifndef _HN_TIME_H_
#define _HN_TIME_H_
#include <iostream>
#include <chrono>
class HNTimer
{
public:
	HNTimer();
	~HNTimer();
public:
	std::string getCoastTime();
	long long getCoastTime_ms();
	void stop();
private:
	// 使用高精度时钟
	using clock = std::chrono::high_resolution_clock;
	// 开始时间点
	std::chrono::steady_clock::time_point start;
	std::chrono::steady_clock::time_point end;
};
#endif // !_HN_TIME_H_
